package com.jxzn.locust.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import com.jxzn.locust.service.SysResourceService;

@Component
public class ResourceHandler implements CommandLineRunner {

    @Autowired
    SysResourceService resourceService;

    @Override
    public void run(String... args) throws Exception {
        resourceService.init();
    }
}
